<%inherit file="base.mako"/>
<%namespace file="/widgets/fields.mako" import="text_field"/>

<h2>Widgets settings</h2>

## FIXME: The form method should be changed to PUT as soon as browsers
## implement PUT/DELETE methods specified in HTML5. This first <input> is a
## Routes hack to workaround the lack of PUT/DELETE support. This input should
## be removed as well.
<form method="POST">
  <input type="hidden" name="_method" value="PUT">
  <div>
<%
id = "widget_twitter"
name = _("Twitter").capitalize()
help = _("Set your Twitter username to enable the Twitter widget, or leave it blank.")
placeholder = "Username"
%>
    ${text_field(id, name, help=help, autofocus=True, placeholder=placeholder)}
  </div>
</form>

<%def name="title()">${parent.title()} - ${_("widgets settings").capitalize()}</%def>

<%def name="sub_menus()">
${parent.build_sub_menus(selected="widgets")}
</%def>
